<template>
  <el-row :gutter="20">
    <!-- 左侧 -->
    <el-col :span="18">
      <!-- 今日设备运行状态 -->
      <equipmentStatus />

      <!-- 常用功能 -->
      <commonFunctions />

      <!-- 能源统计 -->
      <energyStatistics />
    </el-col>

    <!-- 右侧 -->
    <el-col :span="6">
      <!-- 设备总览 -->
      <equipmentOverview />

      <!-- 营收统计表 -->
      <revenueStatistics />

      <!-- 故障报警 -->
      <faultAlarm />
    </el-col>
  </el-row>
</template>

<script setup lang="ts">
// 引入 今日设备运行状态 组件
import equipmentStatus from "./equipmentStatus.vue";
// 引入常用功能 组件
import commonFunctions from "./commonFunctions.vue";
// 引入能源统计 组件
import energyStatistics from "./energyStatistics.vue";
// 引入设备总览 组件
import equipmentOverview from "./equipmentOverview.vue";
// 引入营收统计表 组件
import revenueStatistics from "./revenueStatistics.vue";
// 引入故障报警 组件
import faultAlarm from "./faultAlarm.vue";


import.meta.env.VITE_API_URL;
console.log("当前环境变量VITE_API_URL:", import.meta.env.VITE_API_URL);

</script>

<style scoped lang="less">
.title {
  display: flex;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  align-items: flex-end;
  p {
    color: #86909c;
    font-size: 16px;
  }
}

// 容器
.equipment {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  // 循环项
  .item {
    width: 30%;
    text-align: center;
    img {
      width: 50px;
    }
    // 标题
    h4 {
      margin-bottom: 10px;
    }

    h1 {
      font-size: 30px;
      margin: 5px 0;
    }
    :deep(.el-statistic__content) {
      margin-top: 5px !important ;
      margin-bottom: 5px !important ;
    }
  }
}
</style>
